// import Layout from '@/layout'

export default {
  path: 'permission',
  component: {
    render: h => h('router-view')
  },
  redirect: '/permission/page',
  alwaysShow: false, // will always show the root menu
  name: '权限控制',
  meta: {
    title: '权限',
    icon: '',
    type: 'demo',
    roles: ['admin', 'editor'] // you can set roles in root nav
  },
  children: [
    {
      path: 'index',
      component: () => import('@/views/demos/permission/index'),
      name: 'DirectivePermission',
      meta: {
        title: '权限控制',
        type: 'demo'
        // if do not set roles, means: this page does not require permission
      }
    }
  ]
}
